import { GameEvent } from "../GameEvent";
import { BaseView } from "../ui_view/base/BaseView";

export class StartView extends BaseView{
    private startBtn: cc.Button;

    public constructor(node: cc.Node){
        super(node);
        this.startBtn = cc.find('game/start_view/btn_play').getComponent(cc.Button);
        this.startBtn.node.on('click', this.onStartBtnClick, this);
    }

    private onStartBtnClick(): void{
        console.log('点击开始按钮');
        GameEvent.OnStartGame();
    }
}